//
//  BaseData.h
//  BosidengIphone
//
//  Created by  on 11-12-28.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SQLitePersistentObject.h"

@interface BaseData : SQLitePersistentObject {
    NSString *language;
    NSMutableDictionary *noSaveData;
}

@property(nonatomic, retain)NSString *language;
@property(nonatomic, retain)NSMutableDictionary *noSaveData;

+ (NSString *)getItemQueryString:(NSString *)uidName value:(NSString *)uid;

+ (id)getItemByID:(NSString *)uid;

+ (NSString *)getAllItemsQueryString;

+ (NSArray *)getAllItems;

- (void)setValue:(NSDictionary *)data;

- (CGFloat)getHeight;

- (NSInteger)getTextHeight:(NSString*)str cx:(NSInteger)cx font:(UIFont*)font;

- (void)removeLocalImages;

- (NSString *)formatStringData:(NSString *)data;

- (NSString *)formatNumberData:(NSString *)data;

@end
